package com.fengchao.dao;

import com.fengchao.model.UsrAppDeviceUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * Created by http://my.oschina.net/wangnian on 2016/7/21.
 */
@Mapper
public interface UsrAppDeviceUserMapper {

    @Select("select * from usr_app_device_user where user_id=#{userId} and is_usable=1")
    List<UsrAppDeviceUser> findByUserIdAndIsUsable(Integer userId);
}
